<template>
	<view class="content">
		<view class="contentss" v-if="isShowmodel">
			<view class="index_model" @click="isShowmodel=false">
				<view class="index_imag" @click="isShowmodel=false">
					<image class="model_banner" src="../../static/images/icon/success_icon.png"></image>
				</view>
				<view class="model_text">
					<text class="model_icon">恭喜预约成功</text>
				</view>
			</view>
		</view>
		<image src="../../static/appointment_banner.png" style="width: 100%;height: 450rpx;"></image>
		<view class="model">楼盘名称</view>
		<view class="input-box"><input class="input" type="text" placeholder="请输入楼盘名称" /></view>
		<view class="model">预约类型</view>
		<picker mode="selector" :range="list" @change="pick($event)" :value="index">
			<view class="input-box">
				<view class="input">{{list[index]}}</view>
				<image class="image" src="../../static/images/icon/right_icon.png"></image>
			</view>
		</picker>
		<view class="model">户&emsp;&emsp;型</view>
		<view class="input-box">
			<input class="input" type="text" placeholder="请输入用户户型" /><text class="unit">(m²)</text>
		</view>
		<view class="model">姓&emsp;&emsp;名</view>
		<view class="input-box"><input class="input" type="text" placeholder="请输入用户姓名" /></view>
		<view class="model">联系方式</view>
		<view class="input-box">
			<input class="input" type="text" placeholder="请输入用户联系方式" />
		</view>
		<view class="model">微信号码</view>
		<view class="input-box">
			<input class="input" type="text" placeholder="请输入微信号码" />
		</view>
		<view class="contents" @click="isShowmodel=true">
			<button type="primary" class="button-text">确定预约</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: ['验房', '微改报价', '设计', '拎包入住'],
				index: 0,
				isShowmodel: false
			}

		},
		methods: {
			pick(e) {
				this.index = e.target.value
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 100%;
		height: 100%;
		background-color: #f5f5f5;
		display: flex;
		flex-direction: column;

		.contentss {
			z-index: 999;
			position: fixed;
			width: 100%;
			height: 100%;
			display: flex;
			justify-content: center;
			background-color: rgba(0, 0, 0, 0.3);

			.index_model {
				width: 300rpx;
				height: 228rpx;
				background: #FFFFFF;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				align-content: center;
				margin-top: 630rpx;
				// margin-left: 50rpx;
				border-radius: 18rpx;

				.index_imag {
					width: 136rpx;
					height: 136rpx;
					margin-top: 20rpx;
					margin-bottom: 12rpx;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					margin-left: 0rpx;
					padding-left: 0rpx;
				}

				.model_banner {
					width: 90%;
					height: 100%;
				}

				.model_text {
					margin-top: 0rpx;
					margin-bottom: 40rpx;
					width: 240rpx;
					height: 40rpx;
					margin-left: 10rpx;
					margin-right: 15rpx;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
				}

				.model_icon text {
					margin-bottom: 20rpx;

				}
			}
		}
	}

	.model {
		position: relative;
		left: 80rpx;
		top: 64rpx;
		width: 112rpx;
		height: 40rpx;
		font-size: 28rpx;
		font-weight: 500;
		text-align: center;
		color: #666666;
		line-height: 28rpx;
	}

	.input-box {
		position: relative;
		left: 230rpx;
		top: 18rpx;
		width: 486rpx;
		height: 60rpx;
		background: #FFFFFF;
		border: 2rpx solid rgba(0, 0, 0, 0.10);
		border-radius: 8rpx;
	}

	.input {
		position: relative;
		left: 28rpx;
		top: 15rpx;
		font-size: 24rpx;
		font-weight: 700;
		color: #333333;
		line-height: 24rpx;
		
	}

	.image {
		position: absolute;
		order: 0.2;
		right: 8rpx;
		width: 32rpx;
		height: 32rpx;
		top: 0;
		bottom: 0;
		margin: auto;
	}

	.unit {
		position: absolute;
		opacity: 0.2;
		right: 8rpx;
		top: 13rpx;
		bottom: 0rpx;
		margin: auto;
		font-weight: 700;
		font-size: 30rpx;
	}

	.contents {
		width: 100vw;
		bottom: 128rpx;
		box-sizing: content-box; //盒子模型
		margin-top: 40px;
		margin-bottom: 40px;
	}

	.button-text {
		position: relative;
		/* left: 10rpx;
		top: 122rpx; */
		width: 328rpx;
		height: 80rpx;
		text-align: center;
		line-height: 80rpx;
		background: #3D9C36;
		border-radius: 8rpx;
	}
</style>
